package com.example.secondhandsysapi.Service;

import com.example.secondhandsysapi.Entity.OrderDetailInfo;
import com.example.secondhandsysapi.Mapper.OrderDetailInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderDetailInfoServiceImpl implements OrderDetailInfoService {

    @Autowired
    private OrderDetailInfoMapper orderDetailInfoMapper;
    @Override
    public List<OrderDetailInfo> getOrderDetailInfo(Integer order_id) {
        return orderDetailInfoMapper.getOrderDetailInfo(order_id);
    }

    @Override
    public Integer updateAfterDetailInfo(String After_service, Integer order_id) {
        Integer i = orderDetailInfoMapper.updateAfterDetailInfo(After_service, order_id);
        return 1;
    }
}
